/**
 * desc: 文章接口
 */

import request from '@/static/uitls/request.js'

// 首页的文章列表在index.js

// 获取文章列表
const getArticleList = data => {
	const app = getApp();
	return request({
		url: '/api/v1/article/lists',
		method: 'GET',
		data
	})
}

// 获取文章详情
const getArticleDetail = data => {
	return request({
		url: '/api/v1/article/read',
		method: 'GET',
		data
	})
}


module.exports = {
	getArticleList,
	getArticleDetail
}
